package com.boshanam.model.entities.persistant.jpa.user;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.google.appengine.api.datastore.Key;


/**
 * This Class has all the information about user preferences and settings.
 * 
 * @author Sivakumar Y 
 * UserSettings.java Dec 14, 2009 6:48:42 PM
 * www.ibigbang.net
 */
@Entity
public class UserSettings implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Key key;
	
	private String theme;

	
	private String locale;
	
	
	/**
	 * 
	 */
	public UserSettings() {
	}

	/**
	 * @param key
	 * @param locale
	 */
	public UserSettings(Key key, String theme, String locale) {
		this.key = key;
		this.theme = theme;
		this.locale = locale;
	}


	public void setKey(Key key) {
		this.key = key;
	}

	public Key getKey() {
		return key;
	}


	public void setTheme(String theme) {
		this.theme = theme;
	}

	public String getTheme() {
		return theme;
	}

	/**
	 * @param locale the locale to set
	 */
	public void setLocale(String locale) {
		this.locale = locale;
	}

	/**
	 * @return the locale
	 */
	public String getLocale() {
		return locale;
	}
	

}
